package cn.gzjp.modules.it.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 会员车辆Entity
 * @author 会员车辆
 * @version 2018-01-26
 */
public class MemberCar extends DataEntity<MemberCar> {
	
	private static final long serialVersionUID = 1L;
	private String memberId;		// 会员
	private String carId;		// 车辆
	private Integer sort;		// 排序越大越靠前
	
	public MemberCar() {
		super();
	}

	public MemberCar(String id){
		super(id);
	}

	@Length(min=0, max=32, message="会员长度必须介于 0 和 32 之间")
	@ExcelField(title="会员", align=2, sort=0)
	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	@Length(min=0, max=32, message="车辆长度必须介于 0 和 32 之间")
	@ExcelField(title="车辆", align=2, sort=1)
	public String getCarId() {
		return carId;
	}

	public void setCarId(String carId) {
		this.carId = carId;
	}
	
	@ExcelField(title="排序越大越靠前", align=2, sort=2)
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
}